package com.tuozixuan;

import java.util.HashMap;
import java.util.Map;

import com.googlecode.aviator.AviatorEvaluator;

/**
 * Aviator的變量用法
 */
public class AviatorVariableDemo {

	public static void main(String[] args) {
		String name = "秦始皇";
        Map<String,Object> env = new HashMap<>();
        env.put("name", name);
        String result = (String) AviatorEvaluator.execute(" 'Hello ' + name ", env);
        System.out.println(result);
	}

}
